<template>
  Son
  {{ props.title }}
  <br />
  <button @click="btnClick">son的按钮</button>
</template>

<script setup>
import { defineProps } from 'vue'
const props = defineProps({
  title: {
    type: String,
  },
})
const emit = defineEmits(['add'])
const btnClick = () => {
  emit('add', 1)
}
console.log(props)
</script>
<style scoped></style>
